<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">

	
		<h1>Utilisateur</h1>

		<p:separator />
		<table class="nostyle">
			<tr>
				<td>
					<h3>Fiche</h3> <p:spacer width="300" height="5"></p:spacer>
				</td>
				<td>
					<h5>Civilité</h5>
				</td>
			</tr>
			<tr>
				<td></td>
				<td><p:selectOneMenu  style="width:300px"
						value="#{utilisbeant.selectedUser.sexe}">
						<f:selectItem itemLabel="Monsieur" itemValue="Monsieur" />
						<f:selectItem itemLabel="Madame" itemValue="Madame" />
					</p:selectOneMenu></td>
			</tr>
			<tr>
				<td></td>
				<td>
					<h5>Prénom</h5>
				</td>
			</tr>
			<tr>
				<td></td>
				<td><h:inputText size="50" class="input-text"
						value="#{utilisbeant.selectedUser.lastName}" style="width:300px" /></td>
			</tr>
			<tr>
				<td></td>
				<td><h5>Nom</h5></td>
			</tr>
			<tr>
				<td></td>
				<td><h:inputText size="50" class="input-text"
						value="#{utilisbeant.selectedUser.firstName}" style="width:300px" /></td>
			</tr>
			<tr>
				<td></td>
				<td><h5>Matricule</h5></td>
			</tr>
			<tr>
				<td></td>
				<td><h:inputText size="50" class="input-text"
						value="#{utilisbeant.selectedUser.number}" id="editUserNumberInputTextId"
						style="width:300px">

						<f:validateLongRange minimum="2" maximum="9999999" />
						<p:ajax update="msgErrorsNumberEditUser" event="keyup" />
					</h:inputText> <p:message for="editUserNumberInputTextId" id="msgErrorsNumberEditUser"
						display="icon" /></td>
			</tr>
			<tr>
				<td></td>
				<td><h5>Email</h5></td>
			</tr>
			<tr>
				<td></td>
				<td><h:inputText size="50" class="input-text"
						value="#{utilisbeant.selectedUser.email}" id="userEmailEditUserId"
						style="width:300px">
						<f:validateRegex
							pattern="[\w\.-]*[a-zA-Z0-9_]@[\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]" />
						<p:ajax update="msgErrorsNumberEmailEditUser" event="keyup" />
					</h:inputText> <p:message for="userEmailEditUserId" id="msgErrorsNumberEmailEditUser" display="icon" />
				</td>
			</tr>

			<tr>
				<td></td>
				<td><br></br> <br></br> <h:outputLabel
						value="Cocher si pas d'email"></h:outputLabel> <h:selectBooleanCheckbox
						value="#{utilisbeant.selectedUser.mailSended}"></h:selectBooleanCheckbox>

				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<h5>Identifiant</h5>
				</td>
			</tr>
			<tr>
				<td></td>
				<td><h:inputText size="50" class="input-text"
						value="#{utilisbeant.selectedUser.identification}" style="width:300px" />
				</td>
			</tr>
			<tr>
				<td></td>
				<td>
					<h5>Mot de passe</h5>
				</td>
			</tr>
			<tr>
				<td></td>
				<td><p:password size="50" value="#{utilisbeant.selectedUser.password}"
						style="width:300px"></p:password></td>
			</tr>
		</table>
		<br></br>
		<p:separator />
	
</ui:composition>